package com.itelite.mapper;

import com.itelite.domain.pojo.Validate;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 沈洋 邮箱:1845973183@qq.com
 * @create 2021/8/16-10:33
 **/
@Mapper
public interface ValidateMapper {
    List<Validate> selectByEmail(String email);

    List<Validate> selectByToken(String token);

    int insert(Validate validate);

    int deleteValidate(int day);
}
